import request from '@/utils/request'

// 创建运费模版
export function createAreaExpressFee(data) {
  return request({
    url: '/system/area-express-fee/create',
    method: 'post',
    data: data
  })
}

// 更新运费模版
export function updateAreaExpressFee(data) {
  return request({
    url: '/system/area-express-fee/update',
    method: 'put',
    data: data
  })
}

// 删除运费模版
export function deleteAreaExpressFee(id) {
  return request({
    url: '/system/area-express-fee/delete?id=' + id,
    method: 'delete'
  })
}

// 获得运费模版
export function getAreaExpressFee(id) {
  return request({
    url: '/system/area-express-fee/get?id=' + id,
    method: 'get'
  })
}

// 获得运费模版分页
export function getAreaExpressFeePage(params) {
  return request({
    url: '/system/area-express-fee/page',
    method: 'get',
    params
  })
}
// 导出运费模版 Excel
export function exportAreaExpressFeeExcel(params) {
  return request({
    url: '/system/area-express-fee/export-excel',
    method: 'get',
    params,
    // responseType: 'blob'
  })
}